package com.bwda.dsrs.filecenter.domain.form.strategysituation;

import com.bwda.dsrs.filecenter.domain.po.strategyfilelevel.StrategyFilelevelPo;
import com.bwda.dsrs.filecenter.domain.po.strategyopttype.StrategyOpttypePo;
import com.bwda.dsrs.filecenter.domain.po.strategytarget.StrategyTargetPo;
import com.bwda.dsrs.base.util.DateUtil;
import com.bwda.dsrs.filecenter.domain.po.strategyfilelevel.StrategyFilelevelPo;
import com.bwda.dsrs.filecenter.domain.po.strategyopttype.StrategyOpttypePo;
import com.bwda.dsrs.filecenter.domain.po.strategytarget.StrategyTargetPo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * 场景策略更新Form
 *
 * @author zhangyinmei
 * @date 2019年5月23日
 */
@Data
@ApiModel(description = "场景策略,黑名单")
public class StrategySituationUpdateForm {

    @ApiModelProperty(value = "ID", required = true)
    @NotNull(message = "ID不能为空")
    private Integer id;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "创建时间,格式为:" + DateUtil.FORMAT)
    @DateTimeFormat(pattern = DateUtil.FORMAT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间,格式为:" + DateUtil.FORMAT)
    @DateTimeFormat(pattern = DateUtil.FORMAT)
    private Date updateTime;

    @ApiModelProperty(value = "0未删除 1已删除")
    private Integer delFlag;

    @ApiModelProperty(value = "场景策略禁止对象列表")
    private List<StrategyTargetPo> strategyTargetPoList;

    @ApiModelProperty(value = "场景策略禁止操作类型列表")
    private List<StrategyOpttypePo> strategyOpttypePoList;

    @ApiModelProperty(value = "场景策略禁止文件等级列表")
    private List<StrategyFilelevelPo> strategyFilelevelPoList;

}